import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
type int = number;
//class SShopItem
    
    export  class SShopItem extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SShopItem();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.itemCode);
            arg1.writeInt(this.price);
            arg1.writeInt(this.discount);
            arg1.writeInt(this.amout);
            arg1.writeInt(this.reserve1);
            arg1.writeInt(this.reserve2);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.itemCode = arg1.readInt();
            this.price = arg1.readInt();
            this.discount = arg1.readInt();
            this.amout = arg1.readInt();
            this.reserve1 = arg1.readInt();
            this.reserve2 = arg1.readInt();
            return;
        }

        public /* const */_type: int=12;

        public /* var */itemCode: int;

        public /* var */price: int;

        public /* var */discount: int;

        public /* var */amout: int;

        public /* var */reserve1: int;

        public /* var */reserve2: int;

        public static /* var */_regist: SShopItem;
    }

            SShopItem._regist = new SShopItem(true);
        